/* =========================================================
   FONT SIZE SYSTEM  (edit sizes here, they change sitewide)
   clamp(MIN, PREFERRED, MAX)  -> scales between 320px and 1200px screens
   ========================================================= */
:root {
    --navy: #102a43;
    --blue: #176b87;
    --teal: #18a0a6;
    --ink: #152536;
    --muted: #607080;
    --pale: #f1f7f8;
    --line: #dce7eb;
    --white: #fff;
    --orange: #e9a23b;

    /* Headings (fluid) */
    --fs-h1: clamp(2.375rem, 2.15rem + 1.14vw, 3rem);      /* 38px -> 48px */
    --fs-h1-sm: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
    --fs-h2: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);        /* 29px -> 42px */
    --fs-h2-sm: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem);   /* 25px -> 36px (CTA) */
    --fs-h3: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);        /* 16px -> 18px */

    /* Body text (fluid) */
    --fs-lead: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);     /* 15px -> 16px (hero p) */
    --fs-body: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem); /* 13px -> 14px */

    /* Small text (fixed) */
    --fs-text: 0.8125rem;   /* 13px */
    --fs-small: 0.75rem;    /* 12px */
    --fs-xs: 0.6875rem;     /* 11px */
    --fs-xxs: 0.625rem;     /* 10px */
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--ink);
    line-height: 1.6
}

a {
    color: inherit;
    text-decoration: none
}

h1 { font-size: var(--fs-h1-sm); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { font-size: var(--fs-body); }
small { font-size: var(--fs-xs); }
span { font-size: inherit; } /* span follows its parent */

.wrap {
    width: min(1160px, 92%);
    margin: auto
}

.topbar {
    background: var(--navy);
    color: #d9e8ef;
    font-size: var(--fs-small);
    padding: 8px 0
}

.topbar .wrap {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e8eef0
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 850;
    font-size: 21px;
    letter-spacing: -.5px;
    color: var(--navy)
}

.brandmark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    display: grid;
    place-items: center;
    color: white;
    font-size: 21px;
    box-shadow: 0 6px 16px #176b8730
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
    font-weight: 700;
    margin-top: -3px
}

.links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: var(--fs-text);
    font-weight: 700;
    color: #34495a
}

.links a:hover {
    color: var(--teal)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: #fff;
    padding: 13px 19px;
    border-radius: 7px;
    font-weight: 750;
    font-size: var(--fs-text);
    border: 0;
    cursor: pointer;
    transition: .2s
}

.btn:hover {
    background: #117d84;
    transform: translateY(-1px)
}

.btn.outline {
    background: transparent;
    border: 1px solid #ffffff80;
    color: #fff
}

.menu {
    display: none;
    background: none;
    border: 0;
    font-size: 26px
}

footer {
    background: #0b2033;
    color: #c5d4dd;
    padding: 45px 0 20px
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 30px
}

.footer-brand {
    max-width: 340px
}

.footer-brand .brand {
    color: white
}

.footer-brand p {
    font-size: var(--fs-small);
    color: #a8bdc9
}

.footer-links h4 {
    color: #fff;
    font-size: var(--fs-small);
    margin: 0 0 12px
}

.footer-links a {
    display: block;
    font-size: var(--fs-small);
    color: #a8bdc9;
    margin: 7px 0
}

.footer-links a:hover {
    color: #70d5d3
}

.copyright {
    border-top: 1px solid #ffffff1a;
    padding-top: 17px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: var(--fs-xxs);
    color: #8ea5b4
}

/* Product dropdown navigation */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: 0;
    color: #34495a;
    font: inherit;
    font-size: var(--fs-text);
    font-weight: 700;
    padding: 12px 0
}

.dropdown-toggle:hover {
    color: var(--teal)
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 7px);
    left: -16px;
    min-width: 235px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 16px 35px #102a431c;
    z-index: 20
}

.dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--navy)
}

.dropdown-menu a small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px
}

.dropdown-menu a:hover {
    background: var(--pale);
    color: var(--teal)
}

.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu, .nav-item.expanded .dropdown-menu {
    display: block
}

/* =========================================================
   RESPONSIVE (no font-size overrides needed, clamp() handles it)
   ========================================================= */
@media (max-width: 850px) {
    .links {
        gap: 13px
    }

    .hero-grid {
        grid-template-columns: 1fr 0.8fr
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .about-grid {
        gap: 30px
    }

    .steps {
        grid-template-columns: repeat(2, 1fr)
    }

    .trustgrid {
        grid-template-columns: repeat(2, 1fr)
    }

    .trustitem:nth-child(2) {
        border: 0
    }

    .contact-grid {
        gap: 28px
    }
}

@media (max-width: 650px) {
    .nav-item {
        display: block;
        height: auto
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 8px 0
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        margin: 0 0 8px 8px;
        padding: 3px 8px;
        min-width: 0
    }

    .nav-item:hover .dropdown-menu {
        display: none
    }

    .nav-item.expanded .dropdown-menu, .nav-item:focus-within .dropdown-menu {
        display: block
    }

    .topbar .wrap {
        justify-content: center;
        text-align: center
    }

    .nav {
        height: 68px
    }

    .menu {
        display: block;
        color: var(--navy)
    }

    .links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 68px;
        background: #fff;
        padding: 20px 5%;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 8px
    }

    .links.open {
        display: flex
    }

    .links .btn {
        text-align: center
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 55px 0 38px
    }

    .product-art {
        min-height: 300px
    }

    .art-panel {
        height: 300px
    }

    .trustgrid {
        padding: 16px 0
    }

    .trustitem {
        padding: 5px
    }

    .trustitem strong {
        font-size: var(--fs-xs)
    }

    section {
        padding: 60px 0
    }

    .product-grid {
        grid-template-columns: 1fr
    }

    .product-visual {
        height: 160px
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr
    }

    .about-visual {
        min-height: 320px
    }

    .feature-list {
        gap: 14px
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    .cta {
        padding-bottom: 55px
    }

    .cta-box {
        padding: 28px;
        align-items: flex-start;
        flex-direction: column
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .field.full {
        grid-column: auto
    }

    .footer-top {
        gap: 25px
    }
}

@media (max-width: 390px) {
    .steps, .trustgrid {
        grid-template-columns: 1fr
    }

    .trustitem {
        border: 0
    }

    .feature-list {
        grid-template-columns: 1fr
    }
}